package com.live.webvideo.project.service.impl;

import com.live.webvideo.project.entity.RoomInfo;
import com.live.webvideo.project.mapper.RoomInfoMapper;
import com.live.webvideo.project.service.RoomInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wangdong
 * @date 2018/11/1 21:02
 * 描述：
 */
@Service
public class RoomInfoServiceImpl implements RoomInfoService {

    @Autowired
    private RoomInfoMapper roomInfoMapper;

    @Override
    public List<RoomInfo> selectRoomLists() {

        List<RoomInfo> list = roomInfoMapper.selectRoomLists();

        return list;
    }

    @Override
    public RoomInfo selectRoomInfoById(Integer id) {

        return roomInfoMapper.selectByPrimaryKey(id);
    }
}
